const path = require('path')

function resolve (dir) {
  return path.join(__dirname, dir)
}

// vue.config.js
const vueConfig = {
  publicPath: process.env.VUE_APP_PUBLIC_PATH,
  // configureWebpack: {
  //   plugins: [
  //   ]
  // },
  lintOnSave:false,
  chainWebpack: (config) => {
    config.resolve.alias
      .set('@$', resolve('src'))
  },

  devServer: {
    // development server port 8000
    port: 8000,
    // If you want to turn on the proxy, please remove the mockjs /src/main.jsL11
    proxy: {
      '/api': {
        target: 'http://smart.cast.org.cn/',
        ws: false,
        changeOrigin: true
      }
    }
  },

  // disable source map in production
  productionSourceMap: false,
  lintOnSave: undefined,
  // babel-loader no-ignore node_modules/*
  transpileDependencies: []
}

module.exports = vueConfig
